import Vue from 'vue'
import Router from 'vue-router'
import MainContent from '@/components/index'
import HomePage from "@/components/HomePage/index.vue"
import Introduction from "@/components/Introduction/index.vue"
import MeetingroomDetail from "@/components/Introduction/meetingroom.vue"
import Calendar from "@/components/MyMeeting/Calendar.vue"
import MyReserve from "@/components/MyMeeting/MyReserve.vue"
import ReserveMeeting from "@/components/ReserveMeeting/index.vue"
import Meeting_Detail from "@/components/Meeting_Detail/index.vue"
import Repair from "@/components/MyPage/repair.vue"
import OnlineRepair from "@/components/MyPage/onlinerepair.vue"
import MeetingNote from "@/components/MyPage/Meetingnote.vue"
import WriteNote from "@/components/MyPage/Writenote.vue"
import MyInformation from "@/components/MyPage/MyInformation.vue"
import Report from "@/components/Report/index.vue"
import NewReport from "@/components/Report/report.vue"
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'MainContent',
      component: MainContent,
      redirect: '/HomePage',
      children: [
        {
          path: 'HomePage',
          name: 'HomePage',
          component: HomePage
        },
        {
          path: 'calendar',
          name: 'Calendar',
          component: Calendar
        },
        {
          path: 'myreserve',
          name: 'MyReserve',
          component: MyReserve
        },
        {
          path: 'describe',
          name: 'describe',
          component: Introduction
        },
        {
          path: 'describe/:id',
          name: 'MeetingroomDetail',
          component: MeetingroomDetail
        },
        {
          path: 'reserve',
          name: 'ReserveMeeting',
          component: ReserveMeeting
        },
        {
          path: 'repair',
          name: 'repair',
          component: Repair
        },
        {
          path: 'onlinerepair',
          name: 'onlinerepair',
          component: OnlineRepair
        },
        {
          path: 'report',
          name: 'report',
          component: Report
        },
        {
          path: 'MeetingNote',
          name: 'MeetingNote',
          component: MeetingNote
        },
        {
          path: 'WriteNote',
          name: 'WriteNote',
          component: WriteNote
        },
        {
          path: 'MyInformation',
          name: 'MyInformation',
          component: MyInformation
        },

      ]
    },
    {
      path: "/detail/:id",
      name: 'Meeting_Detail',
      component: Meeting_Detail
    },
    {
      path: '/NewReport',
      name: 'NewReport',
      component: NewReport
    }
  ]
})
